package cn.com.duiba.millionaire.center.biz.dao.impl;

import cn.com.duiba.millionaire.center.biz.constants.DatabaseSchema;
import cn.com.duiba.millionaire.center.biz.dao.BaseDao;
import cn.com.duiba.millionaire.center.biz.dao.MillionaireShareCodeDao;
import cn.com.duiba.millionaire.center.biz.entity.MillionaireShareCodeEntity;
import org.springframework.stereotype.Repository;

/**
 * Created by sty on 1/19/18.
 */
@Repository
public class MillionaireShareCodeDaoImpl extends BaseDao implements MillionaireShareCodeDao {
    @Override
    public MillionaireShareCodeEntity insert(MillionaireShareCodeEntity millionaireShareCodeEntity) {
        insert("insert", millionaireShareCodeEntity);
        return millionaireShareCodeEntity;
    }


    @Override
    protected DatabaseSchema chooseSchema() {
        return DatabaseSchema.MILLIONAIRE_CONFIG;
    }
}
